package cn.newhopedairy.goods.infrastructure.db.po;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.newhopedairy.common.po.SuperPo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 类目
 *
 * @author Neo.Li
 * @since 2021-01-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("category")
@ApiModel(value="CategoryPo对象", description="类目")
public class CategoryPo extends SuperPo {


    @ApiModelProperty(value = "类目名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "上级类目id")
    @TableField("parent_id")
    private Long parentId;


}
